<template>
  <div v-if="$hasPermissionRouterName($data.data.Name.replace(/ /g, ''))">
    <a href="javascript:null" style="cursor: pointer;">{{ $data.data.Name}}</a>
  </div>
    <div v-else>
      <el-tooltip :open-delay="1000" effect="dark"  placement="top" :content="i18nT('prompt.nopermission')" >
        <i class="el-icon-lock" style="opacity: 0.7;"> {{ $data.data.Name}}</i>
      </el-tooltip>
  </div>
</template>

<script>
import i18n from '@/i18n'
export default {
  data () {
    return {
    }
  },
  created () {
  },
  methods: {
    i18nT (key) {
      return i18n.t(key)
    }
  }
}
</script>

<style>

</style>
